package com.sakura.mall.product.spuComment.service;

import com.sakura.mall.common.response.Page;
import com.sakura.mall.product.spuComment.domain.entity.SpuCommentEntity;
import com.sakura.mall.product.spuComment.domain.request.AddSpuCommentRequest;
import com.sakura.mall.product.spuComment.domain.request.UpdateSpuCommentRequest;
import com.sakura.mall.product.spuComment.domain.request.SpuCommentPageRequest;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sakura.mall.product.spuComment.domain.vo.SpuCommentVo;

/**
 * 商品评价 service
 *
 * @author sakura
 */
public interface SpuCommentService extends IService<SpuCommentEntity> {
    

    /**
     * 分页查询
     *
     * @param request 请求
     * @return ret
     */
    Page<SpuCommentVo> queryPage(SpuCommentPageRequest request);

    /**
    * 注册用户
    *
    * @param request 请求
    */
    void add(AddSpuCommentRequest request);
    

    /**
     * 更新用户
     *
     * @param id      id
     * @param request 更新
     */
    void updateById(Long id, UpdateSpuCommentRequest request);
}
